﻿
namespace Mulala.Cavan.Presentation.Mvc.ViewModel
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Presentation.Seedwork;
    using Mulala.Cavan.Domain.MainBoundedContext.ConsignModule;
    using Mulala.Cavan.Domain.MainBoundedContext.SearchModule;

    public class ConsignViewModel : EntityModel<Consign, ConsignSearch>, IConsignViewModel
    {
        public string Type { get; set; }
        public string Experience { get; set; }
        public string Age { get; set; }
        public string Degree { get; set; }
        public string Salary { get; set; }
        public int ProprietorID { get; set; }
        public string ProprietorName { get; set; }
        public string Avatar { get; set; }
        public string NeccessarySkill { get; set; }
        public int TypeForEdit { get; set; }
        public int RangForEdit { get; set; }
        public int IsMarriedForEdit { get; set; }
        public int HasChildrenForEdit { get; set; }
        public IList<string> NeccessarySkills { get; set; }

        public ConsignViewModel()
        {
            this.NeccessarySkills = new List<string>();
        }
    }

    public class ConsignsViewModel : WebModel, IConsignsViewModel
    {
        public IList<IConsignViewModel> Consigns
        {
            get;
            set;
        }

        public ConsignsViewModel()
        {
            this.Consigns = new List<IConsignViewModel>();
        }
    }
}
